home *** CD-ROM | disk | FTP | other *** search
- Path: ias_ppp0129.iamerica.net!fdbrown
- From: fdbrown@iamerica.net (David Brown)
- Newsgroups: comp.lang.c
- Subject: Need Help..................spawnv error!
- Date: Tue, 6 Feb 1996 22:06:54 -0500
- Organization: iAmerica, Inc.
- Message-ID: <fdbrown.3.010813B0@iamerica.net>
- NNTP-Posting-Host: ias_ppp0129.iamerica.net
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev B]
-
-
- I need a little help. I am writing a DOS program that does the following:
-
- When first executed the program calls up a main menu with a choice of several
- ascii text files to read. Upon making a choice..........the screen clears and
- a border is drawn around the outside edge of the screen and a menubar comes up
- at the bottom of the screen with several choices, (to exit, page forward, page
- back and etc.). The text shows up inside the border and you can scroll
- anywhere in the text you want to. My problem comes in when I execute the
- program in the beginning and I call an executable file from this main menu.
-
- This is when I get "spawnv error.....Not Enough Memory". I am using Borland
- International Turbo C++ Version 3.0 for DOS....but I am programming this
- strictly in C. This program is going to be used as a tutorial for work. A
- student will be able to choose one of several text files to read on a given
- subject and when he is through he can exit back to the main menu and choose
- the option to take a test. This test is a separate program that I wrote and
- it is an executable file......not part of this tutorial I am coding. I
- thought it would be easier to call the executable file from this menu but I
- keep getting the aforementioned spawnv error.
-
- This is how I am calling the file from the main menu:
-
- case 'G': spawnv( P_WAIT, "AB_QUEST.EXE", argv);
- if( errno )
- perror( "spawnv error" );
- exit(1);
-
- I am also using the following in the code:
-
- void menu(int argc, char *argv[ ] )
-
- char *arguments[ ] = { "" };
-
- I am not running Windows. I work in DOS and this is strictly a program
- written for DOS and I am running 8 megs of memory. If you have an idea that
- will solve my problem I'd forever be in your debt. Thanks in advance.
- Please post the answer here or if you'd prefer please send Email to:
-
- fdbrown@iamerica.net
-
- David Brown
- West Monroe, La.
-
- (PS) - If more code fragments are needed please let me know and I'll post it
- for you.
-